package XML;

import java.util.Vector;

public class FragmentXML {
	private String name;
	private Vector<String> Input;
	private Vector<String> Output;
	private int preference;
	
	public FragmentXML(String name, Vector<String> input, Vector<String> output, int preference) {
		super();
		this.name = name;
		this.Input = input;
		this.Output = output;
		this.preference=preference;
	}

	public String getName() {
		return name;
	}

	public Vector<String> getInput() {
		return Input;
	}

	public Vector<String> getOutput() {
		return Output;
	}
	
	public int getPreference(){
		return preference;
	}
	
	public String toString(){
		String res="Fragment "+name+" Input: ";
		
		for(String i : Input)
			res = res + i +" ";
		
		res=res+"Output: ";
		
		for(String i : Output)
			res = res + i +" ";
		
		res=res+"preference : "+preference;
		
		return res;
	}
}
